home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / Papers / OS Shell in Java / Facade / DesktopImageMenu.java < prev    next >
Encoding:
Java Source  |  1998-06-17  |  699 b   |  31 lines  |  [TEXT/dosa]

  1. //    DesktopImageMenu.java : this is a Java source code file for the program Facade.
  2. //    Copyright 1998, Andrew S. Downs
  3. //    andrew.downs@tulane.edu
  4. //
  5. //    This source code is distributed as freeware.
  6. //    Just keep this author information in the file.  Enjoy!
  7.  
  8. import java.awt.*;
  9. import java.awt.image.*;
  10. import java.io.*;
  11. import java.util.*;
  12.  
  13. public class DesktopImageMenu extends DesktopMenu implements Serializable {
  14.     // Only difference from superclass:
  15.     // Display Image instead of label (String).
  16.     Image theImage;
  17.     
  18.     DesktopImageMenu() {
  19.         super();
  20.     }
  21.  
  22.     public void setImage( Image i ) {
  23.         this.theImage = i;
  24.     }
  25.  
  26.     public Image getImage() {
  27.         return this.theImage;
  28.     }
  29. }
  30.  
  31.